package org.jeecg.modules.system.controller;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.quartz.job.TokenClearJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/testv1")
public class TestController {
    @Autowired
    private TokenClearJob job;

    @GetMapping("clearjob")
    public Result clearjob() throws Exception {
        job.tokenClearJob(null);
        return Result.ok("操作成功");
    }
}
